<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <style>
        .fa{
            display: flex;
            border: 2px solid red;
            height: 100px;

            /* 交叉轴对齐方式 */
            /* align-items: stretch; */
            /* align-items: flex-start; */
            /* align-items: flex-end; */
            align-items: center;
            justify-content: center;

            flex-wrap: wrap;
        }
        .zhou{
            background-color: green;
            color: white;
        }
        .zhu{
            background-color: pink;
        }
        .liu{
            background-color: purple;
            color: yellow;
        }
    </style>
    <div class="fa">
        <div class="zhou">周瑜</div>
        <div class="zhu">诸葛亮</div>
        <div class="liu">刘备</div>
        <div>曹操</div>
        <div class="zhou">周瑜</div>
        <div class="zhu">诸葛亮</div>
        <div class="liu">刘备</div>
        <div>曹操</div>
        <div class="zhou">周瑜</div>
        <div class="zhu">诸葛亮</div>
        <div class="liu">刘备</div>
        <div>曹操</div>
        <div class="zhou">周瑜</div>
        <div class="zhu">诸葛亮</div>
        <div class="liu">刘备</div>
        <div>曹操</div>
        <div class="zhou">周瑜</div>
        <div class="zhu">诸葛亮</div>
        <div class="liu">刘备</div>
        <div>曹操</div>
        <div class="zhou">周瑜</div>
        <div class="zhu">诸葛亮</div>
        <div class="liu">刘备</div>
        <div>曹操</div>
        <div class="zhou">周瑜</div>
        <div class="zhu">诸葛亮</div>
        <div class="liu">刘备</div>
        <div>曹操</div>
    </div>
    <hr>
    <style>
        .fa2{
            display: flex;
            background-color: pink;
        }
        /* .liu2{
            margin-right: auto;
        } */
        .zhu2{
            margin-right: auto;
        }
    </style>
    <div class="fa2">
        <div class="zhou">周瑜</div>
        <div class="zhu zhu2">诸葛亮</div>
        <div class="liu liu2">刘备</div>
        <div>曹操</div>
    </div>
</body>
</html>